﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using RelightERP.DAL.EntityModel;
using RelightERP.BO.Entities;

namespace RelightERP.BLL
{
    public class MasterHelper
    {
        private static List<SqlParameter> paramList = null;
        private static DataAccessHelper daHelper = null;

        #region BRANCHES        

        public bool DeleteBranches(string commaDelimitedBranchID)
        {
            bool result = false;
            try
            {
                paramList = new List<SqlParameter>();
                DAUtility.AddInputParameter(paramList, "@BranchIDList", commaDelimitedBranchID);
                daHelper = new DataAccessHelper();
                daHelper.ExecuteNonQuery(false, "DeleteBranches", paramList);                
                result = true;
            }
            catch (Exception ex)
            {
                result = false;
                throw ex;
            }
            return result;
        } 
        #endregion

    }
}
